<?php

namespace tch\core\controller\admin;

use tch\core\AdminController;
use tch\core\util\Parsedown;

/**
 * 后台帮助中心控制器
 */
class HelpController extends AdminController
{

    /**
     * 默认动作
     */
    public function index()
    {
        $content = file_get_contents(TCH_CORE_ROOT . '/readme.md');
        $content = Parsedown::instance()->parse($content);
        
        $this->setVar('content', $content);
        $this->display();
    }

}
